<template>
	<view class="route-payresult">
		<view class="iconcont">
			<u-icon name="checkmark-circle-fill" color="#19be6b" size="42" v-if="status===1"></u-icon>
			<u-icon name="close-circle-fill" color="#fa3534" size="42" v-else></u-icon>
		</view>
		<view class="tit">
			<view class="" v-if="status===1">
				支付成功
			</view>
			<view class="" v-else>
				支付失败
			</view>
		</view>

	</view>
</template>

<script setup>
	import {
		ref,
		computed
	} from 'vue'
	import {
		onReady,
		onShow,
		onLoad
	} from '@dcloudio/uni-app'
	const status = ref('')
	onLoad((options) => {
		if (options.status) {
			status.value = Number(options.status)
		}
	})
</script>

<style lang="scss" scoped>
	.route-payresult {

		padding-top: 10vh;
		display: flex;
		flex-direction: column;
		align-items: center;

		.tit {
			margin-top: 40rpx;
		}
	}
</style>